package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 角色权限表 实体类
 * 表名：sys_role_permission
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_role_permission")
public class SysRolePermission implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 角色id
     */
    @Column(name = "role_id", length = 32)
    private String roleId;
    
    /**
     * 权限id
     */
    @Column(name = "permission_id", length = 32)
    private String permissionId;
    
    /**
     * 数据权限ids
     */
    @Column(name = "data_rule_ids", length = 1000)
    private String dataRuleIds;
    
    /**
     * 操作时间
     */
    @Column(name = "operate_date")
    private java.time.LocalDateTime operateDate;
    
    /**
     * 操作ip
     */
    @Column(name = "operate_ip", length = 20)
    private String operateIp;
    
    /**
     * 租户主键ID
     * 默认值: 1
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    @Override
    public String toString() {
        return "SysRolePermission{" +
            "id=" + id +
            ", roleId=" + roleId +
            ", permissionId=" + permissionId +
            ", dataRuleIds=" + dataRuleIds +
            ", operateDate=" + operateDate +
            ", operateIp=" + operateIp +
            ", tenantId=" + tenantId +
        '}';
    }
} 